﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;

namespace Entity
{
    public class Permisstion
    {
        public string Id { get; set; }
        public string GroupNews { get; set; }
        public string UserId { get; set; }
        public string Permiss { get; set; }
        public string GroupNewsId { get; set; }
        public string Name { get; set; }
        public string Level { get; set; }
        public Permisstion PermisstionIDataReader(IDataReader dr)
        {
            return new Permisstion
                       {
                           Id = Convert.ToString(dr["Id"]),
                           GroupNews = Convert.ToString(dr["GroupNews"]),
                           UserId = Convert.ToString(dr["UserId"]),
                           Permiss = Convert.ToString(dr["Permiss"]),
                           GroupNewsId = Convert.ToString(dr["GroupNewsId"]),
                           Name = Convert.ToString(dr["Name"]),
                           Level = Convert.ToString(dr["Level"]),
                       };

        }
    }
}
